.commits-toggle {
  line-height: 20px;
  font-size: 14px;
  color: $gray-06;
  text-align: left;
  font-weight: normal;
  &.small {
    font-size: 12px;
  }
  &-label {
    display: inline-block;
    vertical-align: middle;
  }
  .value-text {
    color: $gray-06;
  }
  .yx-select-popup-wrap {
    left: 28px !important;
  }
}
.commit-select {
  max-width: 260px;
  min-width: 100px;
}
.commit-select-item-label {
  font-size: 14px;
  &.small {
    font-size: 12px;
  }
}

.commit-select-popup {
  width: 360px;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  &-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    &-right {
      color: $gray-06;
      font-size: 12px;
    }
    border-bottom: 1px solid $gray-03;
  }
  &-body {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  &-footer {
    border-top: 1px solid $gray-03;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }
}

.commit-select-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 4px 0;
  cursor: pointer;
  &:hover {
    background: $gray-01;
  }
  &.active {
    background: $highlight-brand;
  }
  .selected-icon-wrapper {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    .selected-icon-type {
      color: $primary-brand;
    }
  }
  .commit-select-label-left {
    flex: 1;
    max-width: calc(100% - 112px);
    .commit-select-label-title {
      font-size: 14px;
      color: $gray-08;
      line-height: 22px;
    }
    .commit-select-label-des {
      font-size: 12px;
      color: $gray-06;
      line-height: 20px;
    }
  }
  .commit-select-label-right {
    width: 60px;
    margin-left: 8px;
    text-align: right;
  }
}
